package com.laot.searchManage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.laot.searchManage.entry.DynamicMenus;
import org.laot.searchManage.vo.MenusVo;

import java.util.List;

/**
* @author laoT
* @description 针对表【dynamic_menus(管理端菜单动态路由表)】的数据库操作Mapper
* @createDate 2024-02-02 17:06:38
* @Entity generator.domain.DynamicMenus
*/
@Mapper
public interface DynamicMenusMapper extends BaseMapper<DynamicMenus> {

    @Select("select id,menuName,frontPath,parentId from dynamic_menus where role = #{userRole} and isDelete = 0 ")
    List<MenusVo> getByRole(@Param("userRole") Integer userRole);
}




